﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

  public  class LoginAdminBAL
    {
          private LoginAdminDAL _LoginAdminDal;

          public LoginAdminBAL() : this(new LoginAdminDAL()) { }
          public LoginAdminBAL(LoginAdminDAL LoginAdminDAL) { _LoginAdminDal = LoginAdminDAL; }


    public string CheckCredentials(LoginAdminBO AdminLogin)
    {

        try
        {

            return _LoginAdminDal.CheckCredentials(AdminLogin);



        }
        catch (Exception ex)
        {
            throw ex;


        }
        finally
        {

            _LoginAdminDal = null;

        }
    }

    public int UnSubscribeMe(LoginAdminBO AdminLogin)
    {

        try
        {

            return _LoginAdminDal.UnSubscribeMe(AdminLogin);



        }
        catch (Exception ex)
        {
            throw ex;


        }
        finally
        {

            _LoginAdminDal = null;

        }
    }

    }

